package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.DeviceWarning;
import cn.topevery.garden.entity.query.DeviceWarningQuery;
import cn.topevery.garden.entity.vo.DeviceWarningVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;
import java.util.Map;

/**
 * 设备报警记录表
 *
 * @author code-generate
 * @date 2021-09-06
 */
public interface DeviceWarningDao extends BaseDao<DeviceWarning> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<DeviceWarningVO> listPage(DeviceWarningQuery query);

    void changeWarningStatus(String eventCode);

    /**
     * 描述 公园一张图-运行监测-今日报警列表
     *
     * @return the today list data
     * @author wenzhao.lin
     * @created 2021 -09-14 17:55:06
     */
    List<DeviceWarningVO> getTodayListData();

    public List<Map<String, Object>> warningCount(Integer type);
}
